package com.register.client;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 服务被创建和启动,负责和server进行通信
 */
@SpringBootApplication
public class RegisterClientApplication {

    public static void main(String[] args) {

        SpringApplication.run(RegisterClientApplication.class, args);

    }

    /**
     * 远程调用组件
     * @return
     */
    @Bean
    public RestTemplate restTemplate() {

        return new RestTemplate();
    }
}
